<?php
//=======================================
//###################################
// Kayako Web Solutions
//
// Source Copyright 2001-2004 Kayako Web Solutions
// Unauthorized reproduction is not allowed
// License Number: $%LICENSE%$
// $Author: vshoor $ ($Date: 2005/05/28 21:56:36 $)
// $RCSfile: staff_comments.php,v $ : $Revision: 1.5 $ 
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//
//###################################
//=======================================

if (!defined("INSWIFT")) {
	trigger_error("Unable to process $PHP_SELF", E_USER_ERROR);
}

if ($_SWIFT["staff"]["kb_entab"] == "0")
{
	echo '<font face="Verdana, Arial, Helvetica" size="2" color="red"><b>'.$_SWIFT["language"]["nopermission"].'</b></font>';
	exit;
}

require_once ("./modules/knowledgebase/functions_knowledgebase.php");
require_once ("./includes/functions_html.php");
require_once ("./includes/functions_users.php");
require_once ("./includes/functions_jscache.php");
require_once ("./includes/functions_comments.php");
$template->loadLanguageSection("knowledgebase");

$interface->assignQuickLink($_SWIFT["language"]["managecategories"], "index.php?_m=knowledgebase&_a=managecategories", "icon_list.gif");
$interface->assignQuickLink($_SWIFT["language"]["managequestions"], "index.php?_m=knowledgebase&_a=managequestions", "icon_topicyellow.gif");
$interface->assignQuickLink($_SWIFT["language"]["insertcategory"], "index.php?_m=knowledgebase&_a=insertcategory", "icon_newcategory.gif");
$interface->assignQuickLink($_SWIFT["language"]["insertquestion"], "index.php?_m=knowledgebase&_a=insertquestion", "icon_inserttopic.gif");

renderCategoryList();

/**
* ###############################################
* COMMENTS
* ###############################################
*/
if ($eventaction == "comments")
{
	$interface->staffHeader($_SWIFT["language"]["knowledgebase"]." &gt; ".$_SWIFT["language"]["comments"], 4);

	$interface->staffNavBar('<a href="index.php?_m=knowledgebase&_a=managequestions" title="'.$_SWIFT["language"]["managequestions"].'">'.$_SWIFT["language"]["managequestions"].'</a> &raquo; <a href="index.php?_m=knowledgebase&_a=comments" title="'.$_SWIFT["language"]["comments"].'">'.$_SWIFT["language"]["comments"].'</a>', "", 4);
	renderCommentGrids(COMMENT_KNOWLEDGEBASE);
	
	$interface->staffFooter();
}
?>